Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal/controller: generate hash of declarative flow by using "schema inspect" #253

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

datdao
Copy link
Member

@datdao datdao commented Jan 7, 2025

This PR replaces the hashing mechanism by using schema inspect. This change ensures that the Operator correctly detects changes in the remote schema.

@datdao datdao force-pushed the d/custom-atlas-config branch 4 times, most recently from 86989ea to cb035b4 Compare January 8, 2025 06:03
@datdao datdao requested review from giautm and rotemtam January 8, 2025 06:04
@datdao datdao marked this pull request as ready for review January 8, 2025 06:05
Comment on lines +836 to +867
schema := envBody.AppendNewBlock("schema", nil).Body()
schema.SetAttributeValue("src", cty.StringVal(d.Desired.String()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also set this schema.src to file://schema.hcl or file://schema.sql

@datdao datdao force-pushed the d/custom-atlas-config branch 14 times, most recently from e3a79af to 1c2b3ab Compare January 15, 2025 03:49
@datdao datdao requested a review from giautm January 15, 2025 04:06
@datdao datdao force-pushed the d/custom-atlas-config branch from 1c2b3ab to b2341a1 Compare January 15, 2025 05:42
@datdao datdao merged commit 9d7fe13 into master Jan 15, 2025
5 of 6 checks passed
@datdao datdao deleted the d/custom-atlas-config branch January 15, 2025 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants